﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.OleDb;
using System.Data.SqlClient;

namespace CFSystem.JXC
{
    /**/
    /// <summary>實現OleDbConnection對象的具體工場類</summary> 
    public class AccessConnection : ConnectionFactory
    {
        public AccessConnection() : this(null) { }
        public AccessConnection(string connString) : base(connString) { }

        public override IDbConnection GetConnection()
        {
            if (connectionString != null)
            {
                return new OleDbConnection(connectionString);
            }
            else
            {
                return new OleDbConnection();
            }
        }
    } 
}
